package com.cimpm.networkDisk.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hby.common.annotation.entity.VerifyMultiRepetitionField;
import com.hby.common.typeHandler.DateTypeHandler;

@TableName("networkdisk_file")
public class NetworkDiskFile {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @VerifyMultiRepetitionField
    private String name;

    @VerifyMultiRepetitionField
    private Integer userId;

    @VerifyMultiRepetitionField
    private String path;

    private Integer isLink;

    private Integer linkId;

    @TableField(typeHandler = DateTypeHandler.class)
    private String createTime;

    private String md5;

    private Integer isDeleted;

    @Version
    private Integer version;

    @Override
    public String toString() {
        return "NetworkDiskFile{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", userId=" + userId +
                ", path='" + path + '\'' +
                ", isLink=" + isLink +
                ", linkId=" + linkId +
                ", createTime='" + createTime + '\'' +
                ", md5='" + md5 + '\'' +
                ", isDeleted=" + isDeleted +
                ", version=" + version +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Integer getIsLink() {
        return isLink;
    }

    public void setIsLink(Integer isLink) {
        this.isLink = isLink;
    }

    public Integer getLinkId() {
        return linkId;
    }

    public void setLinkId(Integer linkId) {
        this.linkId = linkId;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
